// 手动添加需要的 快捷 getters

const getters = {
  sidebar: state => state.app.sidebar,
  language: state => state.app.language,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  introduction: state => state.user.introduction,
  status: state => state.user.status,
  roles: state => state.user.roles,
  setting: state => state.user.setting,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  errorLogs: state => state.errorLog.logs,
  // 精选题库中的学科下拉列表快捷访问
  subjectIDBody: state => state.questionsRandoms.subjectIDBody,
  // 精选题库中的二级目录快捷访问
  catalogIDBody: state => state.questionsRandoms.catalogIDBody,
  // 精选题库中的标签快捷访问
  tagsBody: state => state.questionsRandoms.tagsBody,
  // 精选题库中的录入人快捷访问
  creatorBody: state => state.questionsRandoms.creatorBody,
  // 精选题库中的头上的form表单
  questionRandomsForm: state => state.questionsRandoms.questionRandomsForm,
  // 精选题库中的列表数据
  randomsList: state => state.questionsRandoms.randomsList,
  // 分页器的counts
  liqiushiCounts: state => state.questionsRandoms.counts
}

export default getters
